import redis.clients.jedis.Jedis;

public class work1 {
    public Jedis work1()
    {
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        System.out.println("Redis服务器连接成功！");
        //查看服务是否正在运行
        System.out.println("服务正在运行："+jedis.ping());

        return jedis;
    }

}
